package com.he.services;

import com.he.pojo.Dept;
import com.he.pojo.ServiceResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: usersync
 * @description:
 * @author: xin.he
 * @create: 2021-06-06 12:34
 **/
public interface DeptService {
    //查询
    List<Dept> queryAll();

    //添加数据
    int add(Dept dept);

    //根据部门名查询
    Dept queryByDeptName(String deptName);

    //根据deptId查询
    Dept queryByDeptId(String dId);

    ServiceResult<String> dingDeptSync();

    String saveDingDeptList() throws Exception;

    List<String> getDeptIdLIst();

}
